POV-Ray : Newsgroups : povray.programming : this : Re: this Server Time
28 Jul 2024 16:32:40 EDT (-0400)
  Re: this  
From: Thorsten Froehlich
Date: 25 Jun 2002 15:34:57
Message: <3d18c5e1@news.povray.org>
In article <pan### [at] maccom> , Christopher James
Huff <chr### [at] maccom>  wrote:

>> You just don't need it.  If you think about it, what is the "this"
>> pointer in C++ for?  To access members without having to use lengthy
>> specification of the exact scope you are working on.  But why would you
>> want to have to write "self.radius = 1" if you could just as well
>> implement it such that you can write "radius = 1"?
>
> But that's not what it is for. In all the examples that have been given,
> it is just the addition of the symbol in order to pass the object to a
> function.

Yu still inherit a bunch of problems from pointers/references which are not
necessary.  After all, there is still no real need.  A function simply
operates on whatever object it was called by.  It couldn't access any other
object anyway...

> That sounds like my understanding of a functional language

No, it would not because POV-Ray SDL itself describes a state and still
would after such an extension.  The function would be nothing else but a
user-defined type of texture, pattern, media, vector, float, matrix etc.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.